#ifndef __TPLAYERVIEW_H__
#define __TPLAYERVIEW_H__

#include "stdafx.h"

#define  PLAYERHEADBAR_HEIGHT 26

class TToolButton;
class TPlayerHeadBar : public QWidget
{
    Q_OBJECT
        typedef QWidget _base; 
public:
    TPlayerHeadBar(QWidget *parent = 0);
    ~TPlayerHeadBar();
protected:
    QLabel *m_titleLabel;
    TToolButton *m_homeButton;
    TToolButton *m_fullSceenButton;
    TToolButton *m_closeButton;
};

class TPlayControlBar;
class TPlayerView :  public QWidget
{
    Q_OBJECT
    typedef QWidget _base; 
public:
    TPlayerView(QWidget *parent);
    ~TPlayerView();
protected:
    bool event(QEvent *e);
    bool eventFilter(QObject *o, QEvent *e);
protected slots:
    void timeout();
protected:
    QWidget *m_mainWindow;
    QVBoxLayout *m_mainLayout;
    QStackedLayout *m_stackLayout;
    QTimer m_timer;
};

#endif //__TPLAYERVIEW_H__
